import request from '@/utils/request'

// 查询产品分摊列表
export function listProductApportionment(query) {
  return request({
    url: '/productApportionment/productApportionment/list',
    method: 'get',
    params: query
  })
}

// 查询产品分摊详细
export function getProductApportionment(id) {
  return request({
    url: '/productApportionment/productApportionment/' + id,
    method: 'get'
  })
}

// 新增产品分摊
export function addProductApportionment(data) {
  return request({
    url: '/productApportionment/productApportionment',
    method: 'post',
    data: data
  })
}

// 修改产品分摊
export function updateProductApportionment(data) {
  return request({
    url: '/productApportionment/productApportionment',
    method: 'put',
    data: data
  })
}

// 删除产品分摊
export function delProductApportionment(id) {
  return request({
    url: '/productApportionment/productApportionment/' + id,
    method: 'delete'
  })
}

// 导出产品分摊
export function exportProductApportionment(query) {
  return request({
    url: '/productApportionment/productApportionment/export',
    method: 'get',
    params: query
  })
}